// ----------------------------------------------------------------------
// Include files
// ----------------------------------------------------------------------

// ----------------------------------------------------------------------
// Struct/Union Types and define
// ----------------------------------------------------------------------

// ----------------------------------------------------------------------
// Static Global Data section variables
// ----------------------------------------------------------------------

//----------------------------------------------------------------------
// Front Gamma table
// ----------------------------------------------------------------------
#if defined (__USE_MDIN_i500__)
	#if __USE_GAMMA_BYTEDATA__
	ROMDATA BYTE def_gamma_value_table[18][32] = 
	{
	    {0x04, 0x08, 0x0c, 0x10, 0x14, 0x18, 0x1c, 0x20,   0x28, 0x30, 0x38, 0x40, 0x48, 0x50, 0x58, 0x60,  
	     0x68, 0x70, 0x78, 0x80, 0x88, 0x90, 0x98, 0xa0,   0xa8, 0xb0, 0xb8, 0xc0, 0xd0, 0xe0, 0xf0, 0xff}, //1.0  
	    {0x05, 0x0a, 0x0e, 0x12, 0x17, 0x1b, 0x1f, 0x23,   0x2c, 0x34, 0x3c, 0x45, 0x4d, 0x55, 0x5d, 0x65, 
	     0x6d, 0x75, 0x7d, 0x84, 0x8c, 0x94, 0x9c, 0xa4,   0xac, 0xb3, 0xbb, 0xc3, 0xd2, 0xe1, 0xf1, 0xff}, //0.95 - power law gamma
	    {0x06, 0x0b, 0x10, 0x15, 0x1a, 0x1e, 0x23, 0x27,   0x30, 0x39, 0x41, 0x49, 0x52, 0x5a, 0x62, 0x6a, 
	     0x72, 0x7a, 0x81, 0x89, 0x91, 0x98, 0xa0, 0xa8,   0xaf, 0xb7, 0xbe, 0xc6, 0xd4, 0xe3, 0xf1, 0xff}, //0.90 - power law gamma
	    {0x07, 0x0d, 0x13, 0x18, 0x1d, 0x22, 0x27, 0x2c,   0x35, 0x3e, 0x46, 0x4f, 0x57, 0x5f, 0x67, 0x6f, 
	     0x77, 0x7f, 0x86, 0x8e, 0x95, 0x9d, 0xa4, 0xac,   0xb3, 0xba, 0xc1, 0xc8, 0xd6, 0xe4, 0xf2, 0xff}, //0.85 - power law gamma
	    {0x09, 0x10, 0x16, 0x1c, 0x21, 0x27, 0x2c, 0x30,   0x3a, 0x43, 0x4c, 0x54, 0x5d, 0x65, 0x6d, 0x75, 
	     0x7c, 0x84, 0x8c, 0x93, 0x9a, 0xa1, 0xa9, 0xb0,   0xb7, 0xbe, 0xc4, 0xcb, 0xd9, 0xe6, 0xf3, 0xff}, //0.80 - power law gamma
	    {0x0b, 0x13, 0x1a, 0x20, 0x26, 0x2b, 0x31, 0x36,   0x40, 0x49, 0x52, 0x5a, 0x63, 0x6b, 0x73, 0x7b, 
	     0x82, 0x8a, 0x91, 0x98, 0x9f, 0xa6, 0xad, 0xb4,   0xba, 0xc1, 0xc8, 0xce, 0xdb, 0xe7, 0xf4, 0xff}, //0.75 - power law gamma
	    {0x01, 0x09, 0x11, 0x18, 0x1F, 0x25, 0x2B, 0x30,   0x3B, 0x45, 0x4F, 0x58, 0x60, 0x69, 0x71, 0x79, 
	     0x81, 0x89, 0x90, 0x98, 0x9F, 0xA6, 0xAD, 0xB4,   0xBA, 0xC1, 0xC8, 0xCE, 0xDB, 0xE7, 0xF3, 0xFF}, //0.70 - 6 sRGB gamma
	    {0x04, 0x0E, 0x16, 0x1E, 0x25, 0x2B, 0x31, 0x37,   0x42, 0x4C, 0x56, 0x5F, 0x68, 0x70, 0x78, 0x80, 
	     0x88, 0x8F, 0x96, 0x9D, 0xA4, 0xAB, 0xB2, 0xB8,   0xBF, 0xC5, 0xCB, 0xD1, 0xDD, 0xE9, 0xF4, 0xFF}, //0.65 - 7 sRGB gamma 
	    {0x08, 0x13, 0x1C, 0x25, 0x2C, 0x34, 0x3B, 0x41,   0x47, 0x53, 0x5D, 0x66, 0x6F, 0x78, 0x80, 0x87, 
	     0x8F, 0x96, 0x9D, 0xA3, 0xAA, 0xB0, 0xB7, 0xBD,   0xC3, 0xC9, 0xCF, 0xD4, 0xE0, 0xEA, 0xF5, 0xFF}, //0.60 - 8 sRGB gamma 
	    {0x0D, 0x1A, 0x24, 0x2C, 0x34, 0x3B, 0x41, 0x47,   0x53, 0x5D, 0x66, 0x6F, 0x78, 0x80, 0x87, 0x8F,
	     0x96, 0x9D, 0xA3, 0xAA, 0xB0, 0xB6, 0xBC, 0xC2,   0xC7, 0xCD, 0xD2, 0xD8, 0xE2, 0xEC, 0xF6, 0xFF}, //0.55 - 9 sRGB gamma 
	    {0x13, 0x21, 0x2C, 0x35, 0x3D, 0x44, 0x4B, 0x51,   0x5C, 0x66, 0x70, 0x78, 0x80, 0x88, 0x90, 0x97, 
	     0x9D, 0xA4, 0xAA, 0xB0, 0xB6, 0xBC, 0xC1, 0xC7,   0xCC, 0xD1, 0xD6, 0xDB, 0xE4, 0xEE, 0xF6, 0xFF}, //0.50 - 10 sRGB gamma 
	    {0x1B, 0x2A, 0x35, 0x3F, 0x47, 0x4E, 0x55, 0x5B,   0x66, 0x70, 0x79, 0x82, 0x8A, 0x91, 0x98, 0x9F,  
	     0xA5, 0xAB, 0xB1, 0xB7, 0xBC, 0xC1, 0xC7, 0xCC,   0xD0, 0xD5, 0xDA, 0xDE, 0xE7, 0xEF, 0xF7, 0xFF}, //0.45 - 11 sRGB gamma 
	    {0x25, 0x35, 0x41, 0x4A, 0x53, 0x5A, 0x61, 0x67,   0x72, 0x7B, 0x84, 0x8C, 0x94, 0x9B, 0xA1, 0xA7, 
	     0xAD, 0xB3, 0xB8, 0xBE, 0xC3, 0xC8, 0xCC, 0xD1,   0xD5, 0xD9, 0xDE, 0xE2, 0xE9, 0xF1, 0xF8, 0xFF}, //0.40 - 12 sRGB gamma
	    {0x30, 0x42, 0x4E, 0x58, 0x60, 0x67, 0x6E, 0x74,   0x7E, 0x87, 0x90, 0x97, 0x9E, 0xA5, 0xAB, 0xB1, 
	     0xB6, 0xBB, 0xC0, 0xC5, 0xC9, 0xCE, 0xD2, 0xD6,   0xDA, 0xDE, 0xE1, 0xE5, 0xEC, 0xF3, 0xF9, 0xFF},  //0.35 - 13 sRGB gamma
	    {0x18, 0x2b, 0x38, 0x44, 0x4e, 0x56, 0x5c, 0x64,   0x72, 0x7e, 0x87, 0x8f, 0x96, 0x9d, 0xa3, 0xa9, 
	     0xaf, 0xb4, 0xba, 0xbf, 0xc4, 0xc9, 0xcd, 0xd2,   0xd6, 0xda, 0xde, 0xe2, 0xea, 0xf1, 0xf9, 0xff},  //custom - ktnc zoom
	    {0x1E, 0x2C, 0x36, 0x3F, 0x47, 0x4E, 0x55, 0x5B,   0x66, 0x70, 0x79, 0x82, 0x8A, 0x91, 0x98, 0x9F,  
	     0xA5, 0xAB, 0xB1, 0xB7, 0xBC, 0xC1, 0xC7, 0xCC,   0xD0, 0xD5, 0xDA, 0xDE, 0xE7, 0xEF, 0xF7, 0xFF}, //0.45 - 15 sRGB gamma + add low light minor
	    {0x04, 0x08, 0x0c, 0x10, 0x14, 0x18, 0x1c, 0x20,   0x28, 0x30, 0x38, 0x40, 0x48, 0x50, 0x58, 0x60,  
	     0x68, 0x70, 0x78, 0x80, 0x88, 0x90, 0x98, 0xa0,   0xa8, 0xb0, 0xb8, 0xc0, 0xd0, 0xe0, 0xf0, 0xff},  //dwdr - auto/on
	    {0x48, 0x58, 0x64, 0x6a, 0x71, 0x78, 0x7e, 0x83,   0x8d, 0x95, 0x9d, 0xa4, 0xaa, 0xb0, 0xb5, 0xbb, 
	     0xbf, 0xc4, 0xc8, 0xcd, 0xd1, 0xd4, 0xd8, 0xdc,   0xdf, 0xe2, 0xe6, 0xe9, 0xef, 0xf5, 0xfa, 0xff}  //dwdr - natural
	};

	#else
		#if defined(__M33_V101__)	
		//use data range 0-210	(1.0, 0.95 is limit 241), (not yet fix 0.9~0.6)
		ROMDATA WORD def_gamma_value_table[18][16] = 
		{
			{0x0408, 0x0c10, 0x1418, 0x1c20,  0x2830, 0x3840, 0x4850, 0x5860,  
			 0x6870, 0x7880, 0x8890, 0x98a0,  0xa8b0, 0xb8c0, 0xd0e0, 0xf0f1}, //1.0
			{0x050a, 0x0e12, 0x171b, 0x1f23,  0x2c34, 0x3c45, 0x4d55, 0x5d65, 
			 0x6d75, 0x7d84, 0x8c94, 0x9ca4,  0xacb3, 0xbbc3, 0xd2e1, 0xf0f1}, //0.95 -  power law gamma
			{0x060b, 0x1015, 0x1a1e, 0x2327,  0x3039, 0x4149, 0x525a, 0x626a, 
			 0x727a, 0x8189, 0x9198, 0xA0A8,  0xAFB7, 0xBEC4, 0xD0DC, 0xE6F1}, //0.90 -  power law gamma
			{0x070d, 0x1318, 0x1d22, 0x272c,  0x353e, 0x464f, 0x575f, 0x676f,
			 0x777f, 0x868e, 0x959d, 0xa4ac,  0xAFB7, 0xBEC4, 0xD0DC, 0xE6F1}, //0.85 -  power law gamma
			{0x0910, 0x161c, 0x2127, 0x2c30,  0x3a43, 0x4c54, 0x5d65, 0x6d75, 
			 0x7c84, 0x8c93, 0x9aa1, 0xa9b0,  0xb7be, 0xc4cb, 0xD6E0, 0xE9F1}, //0.80 -  power law gamma
			{0x0b13, 0x1a20, 0x262b, 0x3136,  0x4049, 0x525a, 0x636b, 0x737b, 
			 0x828a, 0x9098, 0x9fa6, 0xadb4,  0xbac1, 0xc5cc, 0xD6E0, 0xE9F1}, //0.75 -  power law gamma
			{0x0109, 0x1118, 0x1F25, 0x2B30,  0x3B45, 0x4F58, 0x6069, 0x7179, 
			 0x8189, 0x9098, 0x9FA6, 0xADB4,  0xBAC1, 0xC8CE, 0xDAE3, 0xE9F1}, //0.70  - 6	sRGB gamma 
			{0x040E, 0x161E, 0x252B, 0x3137,  0x424C, 0x565F, 0x6870, 0x7880, 
			 0x888F, 0x969D, 0xA4AB, 0xB2B8,  0xBFC5, 0xCAD0, 0xDAE3, 0xE9F1}, //0.65  - 7	sRGB gamma 
			{0x0813, 0x1C25, 0x2C33, 0x393F,  0x4A54, 0x5E67, 0x6F78, 0x8087, 
			 0x8F96, 0x9DA3, 0xAAB0, 0xB7BD,  0xC3C9, 0xCFD4, 0xDEE7, 0xECF1}, //0.60  - 8	sRGB gamma 		 
			{0x060D, 0x161D, 0x242A, 0x2F35,  0x3E47, 0x4F57, 0x5E65, 0x6C72, 
			 0x787E, 0x8489, 0x8F94, 0x999E,  0xA3A8, 0xACB1, 0xBAC3, 0xCBD3}, //0.55  - 9	BT709 gamma (0-210)	 
			{0x0C18, 0x232C, 0x353C, 0x434A,  0x5560, 0x6A73, 0x7B83, 0x8B92, 
			 0x99A0, 0xA7AD, 0xB3B9, 0xBFC4,  0xCACF, 0xD4D9, 0xE3ED, 0xF6FF}, //0.50  - 10  BT709 0.50
			{0x1B2A, 0x353F, 0x474E, 0x555B,  0x6670, 0x7982, 0x8A91, 0x989F, 
			 0xA5AB, 0xB1B7, 0xBCC1, 0xC7CC,  0xD0D5, 0xDADE, 0xE7EF, 0xF7FF}, //0.45  - 11  Srgb 0.45
			{0x162D, 0x3943, 0x4C54, 0x5A61,  0x6C76, 0x8088, 0x9097, 0x9EA5, 
			 0xABB1, 0xB6BC, 0xC1C6, 0xCBD0,  0xD4D9, 0xDDE1, 0xEAF1, 0xF9FF}, //0.40  - 12  BT709 0.40
			{0x1928, 0x323B, 0x434A, 0x5056,  0x606A, 0x727A, 0x8289, 0x8F95, 
			 0x9BA1, 0xA7AC, 0xB1B6, 0xBBC0,  0xC4C9, 0xCDD1, 0xD9E1, 0xE9F0}, //custom - 13 BT709 0.45(0~240) HIGH	
			{0x0D1B, 0x252D, 0x343B, 0x4046,  0x4F58, 0x6067, 0x6E74, 0x7A80, 
			 0x858B, 0x9095, 0x999E, 0xA2A7,  0xABAF, 0xB3B7, 0xBEC5, 0xCCD3}, //custom  - 14 BT709 0.45(0~210) MID-1	
			{0x1420, 0x2D3A, 0x464F, 0x5861,  0x717D, 0x8892, 0x9CA4, 0xABB1, 
			 0xB7BC, 0xC1C6, 0xCBCF, 0xD4D7,  0xDADC, 0xDEE0, 0xE3E6, 0xEAEB}, //custom - 15 sony 7350 target out range 16-235   
	//		{0x162E, 0x3B46, 0x4E57, 0x5E64,  0x717B, 0x858D, 0x969E, 0xA4AC, 
	//		 0xB2B8, 0xBFC4, 0xC9CE, 0xD4D9,  0xDDE0, 0xE3E5, 0xE8EA, 0xECEF}, //custom - 15 BT709 0.40 tuned
	//		{0x141C, 0x242C, 0x3137, 0x3C41,  0x4B53, 0x5A61, 0x686E, 0x7379, 
	//		 0x7E83, 0x888D, 0x9195, 0x9A9E,  0xA2A6, 0xA9AD, 0xB4BB, 0xC3D0}, //custom
			{0x262C, 0x3238, 0x3D42, 0x4548,  0x4A4B, 0x4C4D, 0x4E50, 0x5254,  
			 0x565A, 0x5C5F, 0x6265, 0x6970,  0x7880, 0x8892, 0xA7C2, 0xE1FF}, //dwdr - auto/on
			{0x2333, 0x3A43, 0x4C54, 0x5C64,  0x6C76, 0x7C88, 0x909a, 0xa0a5, 
			 0xacb3, 0xbac0, 0xc4c8, 0xcacc,  0xcccc, 0xcccc, 0xcccc, 0xcccc} //dwdr - 0.45 & high light limit & low level up
		};

		#elif defined(__IDEO_ZOOM_V101__)
		ROMDATA WORD def_gamma_value_table[18][16] = 
		{
			{0x0408, 0x0c10, 0x1418, 0x1c20,  0x2830, 0x3840, 0x4850, 0x5860,  
			0x6870, 0x7880, 0x8890, 0x98a0,  0xa8b0, 0xb8c0, 0xd0e0, 0xf0ff}, //1.0
			{0x050a, 0x0e12, 0x171b, 0x1f23,  0x2c34, 0x3c45, 0x4d55, 0x5d65, 
			0x6d75, 0x7d84, 0x8c94, 0x9ca4,  0xacb3, 0xbbc3, 0xd2e1, 0xf1ff}, //0.95 -  power law gamma
			{0x060b, 0x1015, 0x1a1e, 0x2327,  0x3039, 0x4149, 0x525a, 0x626a, 
			0x727a, 0x8189, 0x9198, 0xa0a8,  0xafb7, 0xbec6, 0xd4e3, 0xf1ff}, //0.90 -  power law gamma
			{0x070d, 0x1318, 0x1d22, 0x272c,  0x353e, 0x464f, 0x575f, 0x676f,
			0x777f, 0x868e, 0x959d, 0xa4ac,  0xb3ba, 0xc1c8, 0xd6e4, 0xf2ff}, //0.85 -  power law gamma
			{0x0910, 0x161c, 0x2127, 0x2c30,  0x3a43, 0x4c54, 0x5d65, 0x6d75, 
			0x7c84, 0x8c93, 0x9aa1, 0xa9b0,  0xb7be, 0xc4cb, 0xd9e6, 0xf3ff}, //0.80 -  power law gamma
			{0x0b13, 0x1a20, 0x262b, 0x3136,  0x4049, 0x525a, 0x636b, 0x737b, 
			0x828a, 0x9198, 0x9fa6, 0xadb4,  0xbac1, 0xc8ce, 0xdbe7, 0xf4ff}, //0.75 -  power law gamma
			{0x0109, 0x1118, 0x1F25, 0x2B30,  0x3B45, 0x4F58, 0x6069, 0x7179, 
			0x8189, 0x9098, 0x9FA6, 0xADB4,  0xBAC1, 0xC8CE, 0xDBE7, 0xF3FF}, //0.70  - 6  sRGB gamma 
			{0x040E, 0x161E, 0x252B, 0x3137,  0x424C, 0x565F, 0x6870, 0x7880, 
			0x888F, 0x969D, 0xA4AB, 0xB2B8,  0xBFC5, 0xCBD1, 0xDDE9, 0xF4FF}, //0.65  - 7  sRGB gamma 
			{0x0813, 0x1C25, 0x2C33, 0x393F,  0x4A54, 0x5E67, 0x6F78, 0x8087, 
			0x8F96, 0x9DA3, 0xAAB0, 0xB7BD,  0xC3C9, 0xCFD4, 0xE0EA, 0xF5FF}, //0.60  - 8  sRGB gamma 
			{0x0D1A, 0x242C, 0x343B, 0x4147,  0x535D, 0x666F, 0x7880, 0x878F, 
			0x969D, 0xA3AA, 0xB0B6, 0xBCC2,  0xC7CD, 0xD2D8, 0xE2EC, 0xF6FF}, //0.55  - 9  sRGB gamma 
			{0x1321, 0x2C35, 0x3D44, 0x4B51,  0x5C66, 0x7078, 0x8088, 0x9097, 
			0x9DA4, 0xAAB0, 0xB6BC, 0xC1C7,  0xCCD1, 0xD6DB, 0xE4EE, 0xF6FF}, //0.50  - 10  sRGB gamma 
			{0x1B2A, 0x353F, 0x474E, 0x555B,  0x6670, 0x7982, 0x8A91, 0x989F, 
			0xA5AB, 0xB1B7, 0xBCC1, 0xC7CC,  0xD0D5, 0xDADE, 0xE7EF, 0xF7FF}, //0.45  - 11    sRGB gamma(0-255)
			{0x2535, 0x414A, 0x535A, 0x6167,  0x727B, 0x848C, 0x949B, 0xA1A7, 
			0xADB3, 0xB8BE, 0xC3C8, 0xCCD1,  0xD5D9, 0xDEE2, 0xE9F1, 0xF8FF}, //0.40  - 12    sRGB gamma 
			{0x3042, 0x4E58, 0x6067, 0x6E74,  0x7E87, 0x9097, 0x9EA5, 0xABB1, 
			0xB6BB, 0xC0C5, 0xC9CE, 0xD2D6,  0xDADE, 0xE1E5, 0xECF3, 0xF9FF}, //0.35  - 13    sRGB gamma 
			{0x0712, 0x1F2E, 0x3944, 0x4D58,  0x6875, 0x808A, 0x9299, 0xA0A7, 
			0xAFB5, 0xBBC2, 0xC7CC, 0xD2D8,  0xDCE1, 0xE6EB, 0xF3F9, 0xFCFF}, //custom - 14 sony 7350 target out range 16-255    
			{0x0713, 0x2232, 0x3E4A, 0x5460,  0x7280, 0x8C97, 0xA0A8, 0xB0B7, 
			0xC0C7, 0xCDD5, 0xDAE0, 0xE6EB,  0xF0F4, 0xF6F7, 0xF9FB, 0xFDFF}, //custom - 15 sony 7350 target out range 16-235    
			{0x262C, 0x3238, 0x3D42, 0x4548,  0x4A4B, 0x4C4D, 0x4E50, 0x5254,  
			 0x565A, 0x5C5F, 0x6265, 0x6970,  0x7880, 0x8892, 0xA7C2, 0xE1FF}, //dwdr - auto/on
			{0x3042, 0x4E58, 0x6067, 0x6E74,  0x7E87, 0x9097, 0x9EA5, 0xABB1, 
			0xB6BB, 0xC0C5, 0xC9CE, 0xD2D6,  0xDADE, 0xE1E5, 0xECF3, 0xF9FF}, //defog - auto/on
		};		
		#elif defined(__USE_CMOS_IMX290__) && defined(__USE_X30X_TAMRON__)
		ROMDATA WORD def_gamma_value_table[18][16] = 
		{
			{0x0408, 0x0c10, 0x1418, 0x1c20,  0x2830, 0x3840, 0x4850, 0x5860,  
			0x6870, 0x7880, 0x8890, 0x98a0,  0xa8b0, 0xb8c0, 0xd0e0, 0xf0ff}, //1.0
			{0x050a, 0x0e12, 0x171b, 0x1f23,  0x2c34, 0x3c45, 0x4d55, 0x5d65, 
			0x6d75, 0x7d84, 0x8c94, 0x9ca4,  0xacb3, 0xbbc3, 0xd2e1, 0xf1ff}, //0.95 -  power law gamma
			{0x060b, 0x1015, 0x1a1e, 0x2327,  0x3039, 0x4149, 0x525a, 0x626a, 
			0x727a, 0x8189, 0x9198, 0xa0a8,  0xafb7, 0xbec6, 0xd4e3, 0xf1ff}, //0.90 -  power law gamma
			{0x070d, 0x1318, 0x1d22, 0x272c,  0x353e, 0x464f, 0x575f, 0x676f,
			0x777f, 0x868e, 0x959d, 0xa4ac,  0xb3ba, 0xc1c8, 0xd6e4, 0xf2ff}, //0.85 -  power law gamma
			{0x0910, 0x161c, 0x2127, 0x2c30,  0x3a43, 0x4c54, 0x5d65, 0x6d75, 
			0x7c84, 0x8c93, 0x9aa1, 0xa9b0,  0xb7be, 0xc4cb, 0xd9e6, 0xf3ff}, //0.80 -  power law gamma
			{0x0b13, 0x1a20, 0x262b, 0x3136,  0x4049, 0x525a, 0x636b, 0x737b, 
			0x828a, 0x9198, 0x9fa6, 0xadb4,  0xbac1, 0xc8ce, 0xdbe7, 0xf4ff}, //0.75 -  power law gamma
			{0x0109, 0x1118, 0x1F25, 0x2B30,  0x3B45, 0x4F58, 0x6069, 0x7179, 
			0x8189, 0x9098, 0x9FA6, 0xADB4,  0xBAC1, 0xC8CE, 0xDBE7, 0xF3FF}, //0.70  - 6  sRGB gamma 
			{0x040E, 0x161E, 0x252B, 0x3137,  0x424C, 0x565F, 0x6870, 0x7880, 
			0x888F, 0x969D, 0xA4AB, 0xB2B8,  0xBFC5, 0xCBD1, 0xDDE9, 0xF4FF}, //0.65  - 7  sRGB gamma 
			{0x0813, 0x1C25, 0x2C33, 0x393F,  0x4A54, 0x5E67, 0x6F78, 0x8087, 
			0x8F96, 0x9DA3, 0xAAB0, 0xB7BD,  0xC3C9, 0xCFD4, 0xE0EA, 0xF5FF}, //0.60  - 8  sRGB gamma 
			{0x0D1A, 0x242C, 0x343B, 0x4147,  0x535D, 0x666F, 0x7880, 0x878F, 
			0x969D, 0xA3AA, 0xB0B6, 0xBCC2,  0xC7CD, 0xD2D8, 0xE2EC, 0xF6FF}, //0.55  - 9  sRGB gamma 
			{0x1321, 0x2C35, 0x3D44, 0x4B51,  0x5C66, 0x7078, 0x8088, 0x9097, 
			0x9DA4, 0xAAB0, 0xB6BC, 0xC1C7,  0xCCD1, 0xD6DB, 0xE4EE, 0xF6FF}, //0.50  - 10  sRGB gamma 
			{0x1B2A, 0x353F, 0x474E, 0x555B,  0x6670, 0x7982, 0x8A91, 0x989F, 
			0xA5AB, 0xB1B7, 0xBCC1, 0xC7CC,  0xD0D5, 0xDADE, 0xE7EF, 0xF7FF}, //0.45  - 11    sRGB gamma(0-255)
			{0x2535, 0x414A, 0x535A, 0x6167,  0x727B, 0x848C, 0x949B, 0xA1A7, 
			0xADB3, 0xB8BE, 0xC3C8, 0xCCD1,  0xD5D9, 0xDEE2, 0xE9F1, 0xF8FF}, //0.40  - 12    sRGB gamma 
			{0x3042, 0x4E58, 0x6067, 0x6E74,  0x7E87, 0x9097, 0x9EA5, 0xABB1, 
			0xB6BB, 0xC0C5, 0xC9CE, 0xD2D6,  0xDADE, 0xE1E5, 0xECF3, 0xF9FF}, //0.35  - 13    sRGB gamma 
			{0x0712, 0x1F2E, 0x3944, 0x4D58,  0x6875, 0x808A, 0x9299, 0xA0A7, 
			0xAFB5, 0xBBC2, 0xC7CC, 0xD2D8,  0xDCE1, 0xE6EB, 0xF3F9, 0xFCFF}, //custom - 14 sony 7350 target out range 16-255    
			{0x0814, 0x2232, 0x3E4A, 0x5460,  0x7280, 0x8C97, 0xA0A8, 0xB0B7, 
			0xC0C7, 0xCDD5, 0xDAE0, 0xE6EB,  0xF0F4, 0xF6F7, 0xF9FB, 0xFDFF}, //custom - 15 sony 7350 target out range 16-235    
			{0x262C, 0x3238, 0x3D42, 0x4548,  0x4A4B, 0x4C4D, 0x4E50, 0x5254,  
			 0x565A, 0x5C5F, 0x6265, 0x6970,  0x7880, 0x8892, 0xA7C2, 0xE1FF}, //dwdr - auto/on
			{0x3042, 0x4E58, 0x6067, 0x6E74,  0x7E87, 0x9097, 0x9EA5, 0xABB1, 
			0xB6BB, 0xC0C5, 0xC9CE, 0xD2D6,  0xDADE, 0xE1E5, 0xECF3, 0xF9FF}, //defog - auto/on
		};			
		#elif defined(__USE_CMOS_IMX290__) && (defined(__USE_MANU_TAMRON__)||defined(__USE_MANU_TAMRON_PWM__))
		ROMDATA WORD def_gamma_value_table[18][16] = 
		{
			{0x0408, 0x0c10, 0x1418, 0x1c20,  0x2830, 0x3840, 0x4850, 0x5860,  
			0x6870, 0x7880, 0x8890, 0x98a0,  0xa8b0, 0xb8c0, 0xd0e0, 0xf0ff}, //1.0
			{0x050a, 0x0e12, 0x171b, 0x1f23,  0x2c34, 0x3c45, 0x4d55, 0x5d65, 
			0x6d75, 0x7d84, 0x8c94, 0x9ca4,  0xacb3, 0xbbc3, 0xd2e1, 0xf1ff}, //0.95 -  power law gamma
			{0x060b, 0x1015, 0x1a1e, 0x2327,  0x3039, 0x4149, 0x525a, 0x626a, 
			0x727a, 0x8189, 0x9198, 0xa0a8,  0xafb7, 0xbec6, 0xd4e3, 0xf1ff}, //0.90 -  power law gamma
			{0x070d, 0x1318, 0x1d22, 0x272c,  0x353e, 0x464f, 0x575f, 0x676f,
			0x777f, 0x868e, 0x959d, 0xa4ac,  0xb3ba, 0xc1c8, 0xd6e4, 0xf2ff}, //0.85 -  power law gamma
			{0x0910, 0x161c, 0x2127, 0x2c30,  0x3a43, 0x4c54, 0x5d65, 0x6d75, 
			0x7c84, 0x8c93, 0x9aa1, 0xa9b0,  0xb7be, 0xc4cb, 0xd9e6, 0xf3ff}, //0.80 -  power law gamma
			{0x0b13, 0x1a20, 0x262b, 0x3136,  0x4049, 0x525a, 0x636b, 0x737b, 
			0x828a, 0x9198, 0x9fa6, 0xadb4,  0xbac1, 0xc8ce, 0xdbe7, 0xf4ff}, //0.75 -  power law gamma
			{0x0109, 0x1118, 0x1F25, 0x2B30,  0x3B45, 0x4F58, 0x6069, 0x7179, 
			0x8189, 0x9098, 0x9FA6, 0xADB4,  0xBAC1, 0xC8CE, 0xDBE7, 0xF3FF}, //0.70  - 6  sRGB gamma 
			{0x040E, 0x161E, 0x252B, 0x3137,  0x424C, 0x565F, 0x6870, 0x7880, 
			0x888F, 0x969D, 0xA4AB, 0xB2B8,  0xBFC5, 0xCBD1, 0xDDE9, 0xF4FF}, //0.65  - 7  sRGB gamma 
			{0x0813, 0x1C25, 0x2C33, 0x393F,  0x4A54, 0x5E67, 0x6F78, 0x8087, 
			0x8F96, 0x9DA3, 0xAAB0, 0xB7BD,  0xC3C9, 0xCFD4, 0xE0EA, 0xF5FF}, //0.60  - 8  sRGB gamma 
			{0x0D1A, 0x242C, 0x343B, 0x4147,  0x535D, 0x666F, 0x7880, 0x878F, 
			0x969D, 0xA3AA, 0xB0B6, 0xBCC2,  0xC7CD, 0xD2D8, 0xE2EC, 0xF6FF}, //0.55  - 9  sRGB gamma 
			{0x1321, 0x2C35, 0x3D44, 0x4B51,  0x5C66, 0x7078, 0x8088, 0x9097, 
			0x9DA4, 0xAAB0, 0xB6BC, 0xC1C7,  0xCCD1, 0xD6DB, 0xE4EE, 0xF6FF}, //0.50  - 10  sRGB gamma 
			{0x1B2A, 0x353F, 0x474E, 0x555B,  0x6670, 0x7982, 0x8A91, 0x989F, 
			0xA5AB, 0xB1B7, 0xBCC1, 0xC7CC,  0xD0D5, 0xDADE, 0xE7EF, 0xF7FF}, //0.45  - 11    sRGB gamma(0-255)
			{0x2535, 0x414A, 0x535A, 0x6167,  0x727B, 0x848C, 0x949B, 0xA1A7, 
			0xADB3, 0xB8BE, 0xC3C8, 0xCCD1,  0xD5D9, 0xDEE2, 0xE9F1, 0xF8FF}, //0.40  - 12    sRGB gamma 
			{0x3042, 0x4E58, 0x6067, 0x6E74,  0x7E87, 0x9097, 0x9EA5, 0xABB1, 
			0xB6BB, 0xC0C5, 0xC9CE, 0xD2D6,  0xDADE, 0xE1E5, 0xECF3, 0xF9FF}, //0.35  - 13    sRGB gamma 
			{0x0712, 0x1F2E, 0x3944, 0x4D58,  0x6875, 0x808A, 0x9299, 0xA0A7, 
			0xAFB5, 0xBBC2, 0xC7CC, 0xD2D8,  0xDCE1, 0xE6EB, 0xF3F9, 0xFCFF}, //custom - 14 sony 7350 target out range 16-255    
			{0x0C16, 0x2232, 0x3E4A, 0x5460,  0x7280, 0x8C97, 0xA0A8, 0xB0B7, 
			0xC0C7, 0xCDD5, 0xDAE0, 0xE6EB,  0xF0F4, 0xF6F7, 0xF9FB, 0xFDFF}, //custom - 15 sony 7350 target out range 16-235    
			{0x262C, 0x3238, 0x3D42, 0x4548,  0x4A4B, 0x4C4D, 0x4E50, 0x5254,  
			 0x565A, 0x5C5F, 0x6265, 0x6970,  0x7880, 0x8892, 0xA7C2, 0xE1FF}, //dwdr - auto/on
			{0x3042, 0x4E58, 0x6067, 0x6E74,  0x7E87, 0x9097, 0x9EA5, 0xABB1, 
			0xB6BB, 0xC0C5, 0xC9CE, 0xD2D6,  0xDADE, 0xE1E5, 0xECF3, 0xF9FF}, //defog - auto/on
		};	
		#elif defined(__USE_CMOS_IMX290__) && !(defined(__USE_MANU_TAMRON__)||defined(__USE_MANU_TAMRON_PWM__))
		ROMDATA WORD def_gamma_value_table[18][16] = 
		{
			{0x0408, 0x0c10, 0x1418, 0x1c20,  0x2830, 0x3840, 0x4850, 0x5860,  
			0x6870, 0x7880, 0x8890, 0x98a0,  0xa8b0, 0xb8c0, 0xd0e0, 0xf0ff}, //1.0
			{0x050a, 0x0e12, 0x171b, 0x1f23,  0x2c34, 0x3c45, 0x4d55, 0x5d65, 
			0x6d75, 0x7d84, 0x8c94, 0x9ca4,  0xacb3, 0xbbc3, 0xd2e1, 0xf1ff}, //0.95 -  power law gamma
			{0x060b, 0x1015, 0x1a1e, 0x2327,  0x3039, 0x4149, 0x525a, 0x626a, 
			0x727a, 0x8189, 0x9198, 0xa0a8,  0xafb7, 0xbec6, 0xd4e3, 0xf1ff}, //0.90 -  power law gamma
			{0x070d, 0x1318, 0x1d22, 0x272c,  0x353e, 0x464f, 0x575f, 0x676f,
			0x777f, 0x868e, 0x959d, 0xa4ac,  0xb3ba, 0xc1c8, 0xd6e4, 0xf2ff}, //0.85 -  power law gamma
			{0x0910, 0x161c, 0x2127, 0x2c30,  0x3a43, 0x4c54, 0x5d65, 0x6d75, 
			0x7c84, 0x8c93, 0x9aa1, 0xa9b0,  0xb7be, 0xc4cb, 0xd9e6, 0xf3ff}, //0.80 -  power law gamma
			{0x0b13, 0x1a20, 0x262b, 0x3136,  0x4049, 0x525a, 0x636b, 0x737b, 
			0x828a, 0x9198, 0x9fa6, 0xadb4,  0xbac1, 0xc8ce, 0xdbe7, 0xf4ff}, //0.75 -  power law gamma
			{0x0109, 0x1118, 0x1F25, 0x2B30,  0x3B45, 0x4F58, 0x6069, 0x7179, 
			0x8189, 0x9098, 0x9FA6, 0xADB4,  0xBAC1, 0xC8CE, 0xDBE7, 0xF3FF}, //0.70  - 6  sRGB gamma 
			{0x040E, 0x161E, 0x252B, 0x3137,  0x424C, 0x565F, 0x6870, 0x7880, 
			0x888F, 0x969D, 0xA4AB, 0xB2B8,  0xBFC5, 0xCBD1, 0xDDE9, 0xF4FF}, //0.65  - 7  sRGB gamma 
			{0x0813, 0x1C25, 0x2C33, 0x393F,  0x4A54, 0x5E67, 0x6F78, 0x8087, 
			0x8F96, 0x9DA3, 0xAAB0, 0xB7BD,  0xC3C9, 0xCFD4, 0xE0EA, 0xF5FF}, //0.60  - 8  sRGB gamma 
			{0x0D1A, 0x242C, 0x343B, 0x4147,  0x535D, 0x666F, 0x7880, 0x878F, 
			0x969D, 0xA3AA, 0xB0B6, 0xBCC2,  0xC7CD, 0xD2D8, 0xE2EC, 0xF6FF}, //0.55  - 9  sRGB gamma 
			{0x1321, 0x2C35, 0x3D44, 0x4B51,  0x5C66, 0x7078, 0x8088, 0x9097, 
			0x9DA4, 0xAAB0, 0xB6BC, 0xC1C7,  0xCCD1, 0xD6DB, 0xE4EE, 0xF6FF}, //0.50  - 10  sRGB gamma 
			{0x1B2A, 0x353F, 0x474E, 0x555B,  0x6670, 0x7982, 0x8A91, 0x989F, 
			0xA5AB, 0xB1B7, 0xBCC1, 0xC7CC,  0xD0D5, 0xDADE, 0xE7EF, 0xF7FF}, //0.45  - 11    sRGB gamma(0-255)
			{0x2535, 0x414A, 0x535A, 0x6167,  0x727B, 0x848C, 0x949B, 0xA1A7, 
			0xADB3, 0xB8BE, 0xC3C8, 0xCCD1,  0xD5D9, 0xDEE2, 0xE9F1, 0xF8FF}, //0.40  - 12    sRGB gamma 
			{0x3042, 0x4E58, 0x6067, 0x6E74,  0x7E87, 0x9097, 0x9EA5, 0xABB1, 
			0xB6BB, 0xC0C5, 0xC9CE, 0xD2D6,  0xDADE, 0xE1E5, 0xECF3, 0xF9FF}, //0.35  - 13    sRGB gamma 
			{0x0712, 0x1F2E, 0x3944, 0x4D58,  0x6875, 0x808A, 0x9299, 0xA0A7, 
			0xAFB5, 0xBBC2, 0xC7CC, 0xD2D8,  0xDCE1, 0xE6EB, 0xF3F9, 0xFCFF}, //custom - 14 sony 7350 target out range 16-255    
			{0x0C16, 0x2232, 0x3E4A, 0x5460,  0x7280, 0x8C97, 0xA0A8, 0xB0B7, 
			0xC0C7, 0xCDD5, 0xDAE0, 0xE6EB,  0xF0F4, 0xF6F7, 0xF9FB, 0xFDFF}, //custom - 15 sony 7350 target out range 16-235    
			{0x262C, 0x3238, 0x3D42, 0x4548,  0x4A4B, 0x4C4D, 0x4E50, 0x5254,  
			 0x565A, 0x5C5F, 0x6265, 0x6970,  0x7880, 0x8892, 0xA7C2, 0xE1FF}, //dwdr - auto/on
			{0x3042, 0x4E58, 0x6067, 0x6E74,  0x7E87, 0x9097, 0x9EA5, 0xABB1, 
			0xB6BB, 0xC0C5, 0xC9CE, 0xD2D6,  0xDADE, 0xE1E5, 0xECF3, 0xF9FF}, //defog - auto/on
		};		
		#else
			//ref b/d
			#if defined(__USE_X30X_TAMRON__)
			ROMDATA WORD def_gamma_value_table[18][16] = 
			{
				{0x0408, 0x0c10, 0x1418, 0x1c20,  0x2830, 0x3840, 0x4850, 0x5860,  
				 0x6870, 0x7880, 0x8890, 0x98a0,  0xa8b0, 0xb8c0, 0xd0e0, 0xf0f1}, //1.0
				{0x050a, 0x0e12, 0x171b, 0x1f23,  0x2c34, 0x3c45, 0x4d55, 0x5d65, 
				 0x6d75, 0x7d84, 0x8c94, 0x9ca4,  0xacb3, 0xbbc3, 0xd2e1, 0xf0f1}, //0.95 -  power law gamma
				{0x060b, 0x1015, 0x1a1e, 0x2327,  0x3039, 0x4149, 0x525a, 0x626a, 
				 0x727a, 0x8189, 0x9198, 0xA0A8,  0xAFB7, 0xBEC4, 0xD0DC, 0xE6F1}, //0.90 -  power law gamma
				{0x070d, 0x1318, 0x1d22, 0x272c,  0x353e, 0x464f, 0x575f, 0x676f,
				 0x777f, 0x868e, 0x959d, 0xa4ac,  0xAFB7, 0xBEC4, 0xD0DC, 0xE6F1}, //0.85 -  power law gamma
				{0x0910, 0x161c, 0x2127, 0x2c30,  0x3a43, 0x4c54, 0x5d65, 0x6d75, 
				 0x7c84, 0x8c93, 0x9aa1, 0xa9b0,  0xb7be, 0xc4cb, 0xD6E0, 0xE9F1}, //0.80 -  power law gamma
				{0x0b13, 0x1a20, 0x262b, 0x3136,  0x4049, 0x525a, 0x636b, 0x737b, 
				 0x828a, 0x9098, 0x9fa6, 0xadb4,  0xbac1, 0xc5cc, 0xD6E0, 0xE9F1}, //0.75 -  power law gamma
				{0x0109, 0x1118, 0x1F25, 0x2B30,  0x3B45, 0x4F58, 0x6069, 0x7179, 
				 0x8189, 0x9098, 0x9FA6, 0xADB4,  0xBAC1, 0xC8CE, 0xDAE3, 0xE9F1}, //0.70  - 6	sRGB gamma 
				{0x040E, 0x161E, 0x252B, 0x3137,  0x424C, 0x565F, 0x6870, 0x7880, 
				0x888F, 0x969D, 0xA4AB, 0xB2B8,  0xBFC5, 0xCBD1, 0xDDE9, 0xF4FF}, //0.65  - 7  sRGB gamma 
				{0x0813, 0x1C25, 0x2C33, 0x393F,  0x4A54, 0x5E67, 0x6F78, 0x8087, 
				0x8F96, 0x9DA3, 0xAAB0, 0xB7BD,  0xC3C9, 0xCFD4, 0xE0EA, 0xF5FF}, //0.60  - 8  sRGB gamma 
				{0x0D1A, 0x242C, 0x343B, 0x4147,  0x535D, 0x666F, 0x7880, 0x878F, 
				0x969D, 0xA3AA, 0xB0B6, 0xBCC2,  0xC7CD, 0xD2D8, 0xE2EC, 0xF6FF}, //0.55  - 9  sRGB gamma 
				{0x1321, 0x2C35, 0x3D44, 0x4B51,  0x5C66, 0x7078, 0x8088, 0x9097, 
				0x9DA4, 0xAAB0, 0xB6BC, 0xC1C7,  0xCCD1, 0xD6DB, 0xE4EE, 0xF6FF}, //0.50  - 10  sRGB gamma 
				{0x1B2A, 0x353F, 0x474E, 0x555B,  0x6670, 0x7982, 0x8A91, 0x989F, 
				0xA5AB, 0xB1B7, 0xBCC1, 0xC7CC,  0xD0D5, 0xDADE, 0xE7EF, 0xF7FF}, //0.45  - 11    sRGB gamma(0-255)
				{0x2535, 0x414A, 0x535A, 0x6167,  0x727B, 0x848C, 0x949B, 0xA1A7, 
				0xADB3, 0xB8BE, 0xC3C8, 0xCCD1,  0xD5D9, 0xDEE2, 0xE9F1, 0xF8FF}, //0.40  - 12    sRGB gamma 
				{0x1928, 0x323B, 0x434A, 0x5056,  0x606A, 0x727A, 0x8289, 0x8F95, 
				 0x9BA1, 0xA7AC, 0xB1B6, 0xBBC0,  0xC4C9, 0xCDD1, 0xD9E1, 0xE9F0}, //custom - 13 BT709 0.45(0~240) HIGH	
				{0x0C1C, 0x2D3B, 0x464F, 0x5860,  0x6E7C, 0x8893, 0x9DA7, 0xB0BA, 
				0xC2C8, 0xCFD2, 0xD6D9, 0xDCDE,  0xE0E2, 0xE4E6, 0xEAED, 0xF0F2}, //custom - 14 sony 7350 target out range 16-235   
				{0x0C1C, 0x2D3B, 0x464F, 0x5860,  0x6E7C, 0x8893, 0x9DA7, 0xB0BA, 
				0xC2C8, 0xCFD2, 0xD6D9, 0xDCDE,  0xE0E2, 0xE4E6, 0xEAED, 0xF0F2}, //custom - 15 sony 7350 target out range 16-235   
		//		{0x162E, 0x3B46, 0x4E57, 0x5E64,  0x717B, 0x858D, 0x969E, 0xA4AC, 
		//		 0xB2B8, 0xBFC4, 0xC9CE, 0xD4D9,  0xDDE0, 0xE3E5, 0xE8EA, 0xECEF}, //custom - 15 BT709 0.40 tuned
		//		{0x141C, 0x242C, 0x3137, 0x3C41,  0x4B53, 0x5A61, 0x686E, 0x7379, 
		//		 0x7E83, 0x888D, 0x9195, 0x9A9E,  0xA2A6, 0xA9AD, 0xB4BB, 0xC3D0}, //custom
				{0x262C, 0x3238, 0x3D42, 0x4548,  0x4A4B, 0x4C4D, 0x4E50, 0x5254,  
				 0x565A, 0x5C5F, 0x6265, 0x6970,  0x7880, 0x8892, 0xA7C2, 0xE1FF}, //dwdr - auto/on
				{0x2333, 0x3A43, 0x4C54, 0x5C64,  0x6C76, 0x7C88, 0x909a, 0xa0a5, 
				 0xacb3, 0xbac0, 0xc4c8, 0xcacc,  0xcccc, 0xcccc, 0xcccc, 0xcccc} //dwdr - 0.45 & high light limit & low level up
			};
			#elif (defined(__USE_MANU_TAMRON__)||defined(__USE_MANU_TAMRON_PWM__))
			ROMDATA WORD def_gamma_value_table[18][16] = 
			{
				{0x0408, 0x0c10, 0x1418, 0x1c20,  0x2830, 0x3840, 0x4850, 0x5860,  
				0x6870, 0x7880, 0x8890, 0x98a0,  0xa8b0, 0xb8c0, 0xd0e0, 0xf0ff}, //1.0
				{0x050a, 0x0e12, 0x171b, 0x1f23,  0x2c34, 0x3c45, 0x4d55, 0x5d65, 
				0x6d75, 0x7d84, 0x8c94, 0x9ca4,  0xacb3, 0xbbc3, 0xd2e1, 0xf1ff}, //0.95 -  power law gamma
				{0x060b, 0x1015, 0x1a1e, 0x2327,  0x3039, 0x4149, 0x525a, 0x626a, 
				0x727a, 0x8189, 0x9198, 0xa0a8,  0xafb7, 0xbec6, 0xd4e3, 0xf1ff}, //0.90 -  power law gamma
				{0x070d, 0x1318, 0x1d22, 0x272c,  0x353e, 0x464f, 0x575f, 0x676f,
				0x777f, 0x868e, 0x959d, 0xa4ac,  0xb3ba, 0xc1c8, 0xd6e4, 0xf2ff}, //0.85 -  power law gamma
				{0x0910, 0x161c, 0x2127, 0x2c30,  0x3a43, 0x4c54, 0x5d65, 0x6d75, 
				0x7c84, 0x8c93, 0x9aa1, 0xa9b0,  0xb7be, 0xc4cb, 0xd9e6, 0xf3ff}, //0.80 -  power law gamma
				{0x0b13, 0x1a20, 0x262b, 0x3136,  0x4049, 0x525a, 0x636b, 0x737b, 
				0x828a, 0x9198, 0x9fa6, 0xadb4,  0xbac1, 0xc8ce, 0xdbe7, 0xf4ff}, //0.75 -  power law gamma
				{0x0109, 0x1118, 0x1F25, 0x2B30,  0x3B45, 0x4F58, 0x6069, 0x7179, 
				0x8189, 0x9098, 0x9FA6, 0xADB4,  0xBAC1, 0xC8CE, 0xDBE7, 0xF3FF}, //0.70  - 6  sRGB gamma 
				{0x040E, 0x161E, 0x252B, 0x3137,  0x424C, 0x565F, 0x6870, 0x7880, 
				0x888F, 0x969D, 0xA4AB, 0xB2B8,  0xBFC5, 0xCBD1, 0xDDE9, 0xF4FF}, //0.65  - 7  sRGB gamma 
				{0x0813, 0x1C25, 0x2C33, 0x393F,  0x4A54, 0x5E67, 0x6F78, 0x8087, 
				0x8F96, 0x9DA3, 0xAAB0, 0xB7BD,  0xC3C9, 0xCFD4, 0xE0EA, 0xF5FF}, //0.60  - 8  sRGB gamma 
				{0x0D1A, 0x242C, 0x343B, 0x4147,  0x535D, 0x666F, 0x7880, 0x878F, 
				0x969D, 0xA3AA, 0xB0B6, 0xBCC2,  0xC7CD, 0xD2D8, 0xE2EC, 0xF6FF}, //0.55  - 9  sRGB gamma 
				{0x1321, 0x2C35, 0x3D44, 0x4B51,  0x5C66, 0x7078, 0x8088, 0x9097, 
				0x9DA4, 0xAAB0, 0xB6BC, 0xC1C7,  0xCCD1, 0xD6DB, 0xE4EE, 0xF6FF}, //0.50  - 10  sRGB gamma 
				{0x1B2A, 0x353F, 0x474E, 0x555B,  0x6670, 0x7982, 0x8A91, 0x989F, 
				0xA5AB, 0xB1B7, 0xBCC1, 0xC7CC,  0xD0D5, 0xDADE, 0xE7EF, 0xF7FF}, //0.45  - 11    sRGB gamma(0-255)
				{0x2535, 0x414A, 0x535A, 0x6167,  0x727B, 0x848C, 0x949B, 0xA1A7, 
				0xADB3, 0xB8BE, 0xC3C8, 0xCCD1,  0xD5D9, 0xDEE2, 0xE9F1, 0xF8FF}, //0.40  - 12    sRGB gamma 
				{0x3042, 0x4E58, 0x6067, 0x6E74,  0x7E87, 0x9097, 0x9EA5, 0xABB1, 
				0xB6BB, 0xC0C5, 0xC9CE, 0xD2D6,  0xDADE, 0xE1E5, 0xECF3, 0xF9FF}, //0.35  - 13    sRGB gamma 
				{0x1021, 0x2D37, 0x3F47, 0x4E54,  0x606A, 0x747D, 0x858D, 0x949B, 
				 0xA1A8, 0xAEB4, 0xB9BF, 0xC4C9,  0xCFD3, 0xD8DD, 0xE6EF, 0xF7FF}, //custom	- 14 bt709 0.45		 
				{0x162E, 0x3B46, 0x4E57, 0x5E64,  0x717B, 0x858D, 0x969E, 0xA4AC, 
				 0xB2B8, 0xBFC4, 0xC9CE, 0xD4D9,  0xDDE0, 0xE3E5, 0xE8EA, 0xECEF}, //custom - 15 BT709 0.40 tuned
				{0x262C, 0x3238, 0x3D42, 0x4548,  0x4A4B, 0x4C4D, 0x4E50, 0x5254,  
				 0x565A, 0x5C5F, 0x6265, 0x6970,  0x7880, 0x8892, 0xA7C2, 0xE1FF}, //dwdr - auto/on
				{0x3042, 0x4E58, 0x6067, 0x6E74,  0x7E87, 0x9097, 0x9EA5, 0xABB1, 
				0xB6BB, 0xC0C5, 0xC9CE, 0xD2D6,  0xDADE, 0xE1E5, 0xECF3, 0xF9FF}, //defog - auto/on
			};	
			#else
			ROMDATA WORD def_gamma_value_table[18][16] = 
			{
				{0x0408, 0x0c10, 0x1418, 0x1c20,  0x2830, 0x3840, 0x4850, 0x5860,  
				0x6870, 0x7880, 0x8890, 0x98a0,  0xa8b0, 0xb8c0, 0xd0e0, 0xf0ff}, //1.0
				{0x050a, 0x0e12, 0x171b, 0x1f23,  0x2c34, 0x3c45, 0x4d55, 0x5d65, 
				0x6d75, 0x7d84, 0x8c94, 0x9ca4,  0xacb3, 0xbbc3, 0xd2e1, 0xf1ff}, //0.95 -  power law gamma
				{0x060b, 0x1015, 0x1a1e, 0x2327,  0x3039, 0x4149, 0x525a, 0x626a, 
				0x727a, 0x8189, 0x9198, 0xa0a8,  0xafb7, 0xbec6, 0xd4e3, 0xf1ff}, //0.90 -  power law gamma
				{0x070d, 0x1318, 0x1d22, 0x272c,  0x353e, 0x464f, 0x575f, 0x676f,
				0x777f, 0x868e, 0x959d, 0xa4ac,  0xb3ba, 0xc1c8, 0xd6e4, 0xf2ff}, //0.85 -  power law gamma
				{0x0910, 0x161c, 0x2127, 0x2c30,  0x3a43, 0x4c54, 0x5d65, 0x6d75, 
				0x7c84, 0x8c93, 0x9aa1, 0xa9b0,  0xb7be, 0xc4cb, 0xd9e6, 0xf3ff}, //0.80 -  power law gamma
				{0x0b13, 0x1a20, 0x262b, 0x3136,  0x4049, 0x525a, 0x636b, 0x737b, 
				0x828a, 0x9198, 0x9fa6, 0xadb4,  0xbac1, 0xc8ce, 0xdbe7, 0xf4ff}, //0.75 -  power law gamma
				{0x0109, 0x1118, 0x1F25, 0x2B30,  0x3B45, 0x4F58, 0x6069, 0x7179, 
				0x8189, 0x9098, 0x9FA6, 0xADB4,  0xBAC1, 0xC8CE, 0xDBE7, 0xF3FF}, //0.70  - 6  sRGB gamma 
				{0x040E, 0x161E, 0x252B, 0x3137,  0x424C, 0x565F, 0x6870, 0x7880, 
				0x888F, 0x969D, 0xA4AB, 0xB2B8,  0xBFC5, 0xCBD1, 0xDDE9, 0xF4FF}, //0.65  - 7  sRGB gamma 
				{0x0813, 0x1C25, 0x2C33, 0x393F,  0x4A54, 0x5E67, 0x6F78, 0x8087, 
				0x8F96, 0x9DA3, 0xAAB0, 0xB7BD,  0xC3C9, 0xCFD4, 0xE0EA, 0xF5FF}, //0.60  - 8  sRGB gamma 
				{0x0D1A, 0x242C, 0x343B, 0x4147,  0x535D, 0x666F, 0x7880, 0x878F, 
				0x969D, 0xA3AA, 0xB0B6, 0xBCC2,  0xC7CD, 0xD2D8, 0xE2EC, 0xF6FF}, //0.55  - 9  sRGB gamma 
				{0x1321, 0x2C35, 0x3D44, 0x4B51,  0x5C66, 0x7078, 0x8088, 0x9097, 
				0x9DA4, 0xAAB0, 0xB6BC, 0xC1C7,  0xCCD1, 0xD6DB, 0xE4EE, 0xF6FF}, //0.50  - 10  sRGB gamma 
				{0x1B2A, 0x353F, 0x474E, 0x555B,  0x6670, 0x7982, 0x8A91, 0x989F, 
				0xA5AB, 0xB1B7, 0xBCC1, 0xC7CC,  0xD0D5, 0xDADE, 0xE7EF, 0xF7FF}, //0.45  - 11    sRGB gamma(0-255)
				{0x2535, 0x414A, 0x535A, 0x6167,  0x727B, 0x848C, 0x949B, 0xA1A7, 
				0xADB3, 0xB8BE, 0xC3C8, 0xCCD1,  0xD5D9, 0xDEE2, 0xE9F1, 0xF8FF}, //0.40  - 12    sRGB gamma 
				{0x3042, 0x4E58, 0x6067, 0x6E74,  0x7E87, 0x9097, 0x9EA5, 0xABB1, 
				0xB6BB, 0xC0C5, 0xC9CE, 0xD2D6,  0xDADE, 0xE1E5, 0xECF3, 0xF9FF}, //0.35  - 13    sRGB gamma 
				{0x1021, 0x2D37, 0x3F47, 0x4E54,  0x606A, 0x747D, 0x858D, 0x949B, 
				 0xA1A8, 0xAEB4, 0xB9BF, 0xC4C9,  0xCFD3, 0xD8DD, 0xE6EF, 0xF7FF}, //custom	- 14 bt709 0.45		 
				{0x1A30, 0x3B46, 0x4E57, 0x5E64,  0x717B, 0x858D, 0x969E, 0xA4AC, 
				 0xB2B8, 0xBFC4, 0xC9CE, 0xD4D9,  0xDDE0, 0xE3E5, 0xE8EA, 0xECEF}, //custom - 15 BT709 0.40 tuned
				{0x262C, 0x3238, 0x3D42, 0x4548,  0x4A4B, 0x4C4D, 0x4E50, 0x5254,  
				 0x565A, 0x5C5F, 0x6265, 0x6970,  0x7880, 0x8892, 0xA7C2, 0xE1FF}, //dwdr - 16 auto/on
				{0x3042, 0x4E58, 0x6067, 0x6E74,  0x7E87, 0x9097, 0x9EA5, 0xABB1, 
				0xB6BB, 0xC0C5, 0xC9CE, 0xD2D6,  0xDADE, 0xE1E5, 0xECF3, 0xF9FF}, //defog - 17 auto/on
			};	
			
			#endif
		#endif
	#endif	//#if defined __USE_GAMMA_BYTEDATA__
#endif 	//#if defined (__USE_MDIN_i500__)

// for thermography
#if __USE_GAMMA_BYTEDATA__
ROMDATA BYTE gamma_table_thermo_r[32] = 
{
	120, 129, 89, 107, 48, 69, 14, 28,
	1, 6, 0, 0, 3, 0, 30, 12,  
	95, 58, 177, 136, 234, 211, 254, 247,
	255, 255, 255, 255, 255, 255, 255, 255, 
};
ROMDATA BYTE gamma_table_thermo_g[32] = 
{
	37, 40, 28, 33, 29, 26, 67, 42,
	143, 103, 215, 182, 249, 236, 255, 254,  
	255, 255, 248, 253, 240, 228, 211, 191,
	139, 167, 82, 110, 35, 56, 10, 20, 
};
ROMDATA BYTE gamma_table_thermo_b[32] = 
{
	228, 230, 233, 237, 241, 245, 249, 252,
	252, 247, 234, 211, 177, 136, 95, 58,  
	30, 12, 3, 0, 0, 0, 0, 0,
	0, 0, 0, 0, 0, 0, 0, 0, 
};
#else
ROMDATA WORD gamma_table_thermo_r[16] = 
{
    MAKEWORD(129,120),MAKEWORD(107,89),MAKEWORD(69,48),MAKEWORD(28,14),
    MAKEWORD(6,1),MAKEWORD(0,0),MAKEWORD(0,3),MAKEWORD(12,30),
    MAKEWORD(58,95),MAKEWORD(136,177),MAKEWORD(211,234),MAKEWORD(247,254),
    MAKEWORD(255,255),MAKEWORD(255,255),MAKEWORD(255,255),MAKEWORD(255,255)
};

ROMDATA WORD gamma_table_thermo_g[16] = 
{
    MAKEWORD(40,37),MAKEWORD(33,28),MAKEWORD(26,29),MAKEWORD(42,67),
    MAKEWORD(103,143),MAKEWORD(182,215),MAKEWORD(236,249),MAKEWORD(254,255),
    MAKEWORD(255,255),MAKEWORD(253,248),MAKEWORD(240,228),MAKEWORD(211,191),
    MAKEWORD(167,139),MAKEWORD(110,82),MAKEWORD(56,35),MAKEWORD(20,10)
};

ROMDATA WORD gamma_table_thermo_b[16] = 
{
    MAKEWORD(228,230),MAKEWORD(233,237),MAKEWORD(241,245),MAKEWORD(249,252),
    MAKEWORD(252,247),MAKEWORD(234,211),MAKEWORD(177,136),MAKEWORD(95,58),
    MAKEWORD(30,12),MAKEWORD(3,0),MAKEWORD(0,0),MAKEWORD(0,0),
    MAKEWORD(0,0),MAKEWORD(0,0),MAKEWORD(0,0),MAKEWORD(0,0)
};
#endif


/*  FILE_END_HERE */
